home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Tools / Win95 Secrets / SETUP.Z / TIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-19  |  1.1 KB  |  32 lines

  1. //==================================
  2. // SHOWSEH - Matt Pietrek 1995
  3. // FILE: TIB.H
  4. //==================================
  5. #pragma pack(1)
  6.  
  7. typedef struct _SEH_record
  8. {
  9.     struct _SEH_record *pNext;
  10.     FARPROC             pfnHandler;
  11. } SEH_record, *PSEH_record;
  12.  
  13. // This is semi-documented in the NTDDK.H file from the NT DDK
  14. typedef struct _TIB
  15. {
  16. PSEH_record pvExcept;       // 00h Head of exception record list
  17. PVOID   pvStackUserTop;     // 04h Top of user stack
  18. PVOID   pvStackUserBase;    // 08h Base of user stack
  19. WORD    pvTDB;              // 0Ch TDB
  20. WORD    pvThunksSS;         // 0Eh SS selector used for thunking to 16 bits
  21. DWORD   SelmanList;         // 10h
  22. PVOID   pvArbitrary;        // 14h Available for application use
  23. struct _tib *ptibSelf;      // 18h Linear address of TIB structure
  24. WORD    TIBFlags;           // 1Ch
  25. WORD    Win16MutexCount;    // 1Eh
  26. DWORD   DebugContext;       // 20h
  27. DWORD   pCurrentPriority;   // 24h
  28. DWORD   pvQueue;            // 28h Message Queue selector
  29. PVOID*  pvTLSArray;         // 2Ch Thread Local Storage array
  30. } TIB, *PTIB;
  31. #pragma pack()
  32.